/////////////////////////////////////////////////////////////////////////////
// Copyright(c) 2012-2018  hujiang All Rights Reserved
// Name:        CCtalk  gpuInfo.h
// Purpose:
// Author:      ts
// Modified by:
// Created:     2018/8/30
// RCS-ID:
// Licence:
/////////////////////////////////////////////////////////////////////////////
#ifndef GPU_INFO_H
#define GPU_INFO_H
#include <QString>
#include <QVariant>
#include <QVersionNumber>

class Q_DECL_EXPORT GpuInfo
{
public:
    void detect();
    QString toString() const;
    QVariant toVariant() const;

    QString vendorIdString() const;
    QString deviceIdString() const;
    QString driverVersionString() const;

private:
    uint vendorId = 0;
    uint deviceId = 0;
    uint revision = 0;
    uint subSysId = 0;
    QVersionNumber driverVersion;
    QByteArray driverName;
    QByteArray description;
};

#endif // GPU_INFO_H
